
import baseLogoutRequest from '../utils/login_request'

import braceletRequest from '../utils/login_request'

// 微信一键登录
// export function weixinLoginApi (data) {
//     return baseRequest.baseRequest(
//         'api/miniProgram/login',
//         'post',
//         JSON.stringify(data)
//     )
// }
export function weixinLoginApi (data) {
    return braceletRequest.braceletRequest(
        'api/miniProgram/login',
        'post',
        JSON.stringify(data)
    )
}
// 刷新token

export function refreshTokenApi (data) {
    return braceletRequest.braceletRequest(
        'api/miniProgram/refresh',
        'post',
        JSON.stringify(data)
    )
}

// 退出登录
export function weixinLogoutApi (data) {
    return baseLogoutRequest.baseLogoutRequest(
        'api/miniProgram/logout',
        'post',
        JSON.stringify(data)
    )
}